package com.pet_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pet_service.entity.Permission;
import com.pet_service.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 邹全伸
* @description 针对表【permission(权限表)】的数据库操作Mapper
* @createDate 2025-09-20 09:18:18
* @Entity com.pet_service.entity.Permission
*/
public interface PermissionMapper extends BaseMapper<Permission> {
    List<Permission> selectPermissionByRoleId(@Param("roleIds") List<Role> roleIds);

    List<Permission> selectPermission(@Param("roleId") Integer roleId);

    int deleteByPermissionId(@Param("permissionId")Integer permissionId);
}




